package com.coconet.gas.vo.dw;

import java.io.Serializable;
import javax.persistence.*;

@Table(name = "assetAndGroup")
public class Assetandgroup implements Serializable {
    @Id
    private Integer id;

    /**
     * 资产id
     */
    @Column(name = "assetId")
    private Integer assetid;

    /**
     * 组id
     */
    @Column(name = "groupId")
    private Integer groupid;

    private static final long serialVersionUID = 1L;

    /**
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取资产id
     *
     * @return assetId - 资产id
     */
    public Integer getAssetid() {
        return assetid;
    }

    /**
     * 设置资产id
     *
     * @param assetid 资产id
     */
    public void setAssetid(Integer assetid) {
        this.assetid = assetid;
    }

    /**
     * 获取组id
     *
     * @return groupId - 组id
     */
    public Integer getGroupid() {
        return groupid;
    }

    /**
     * 设置组id
     *
     * @param groupid 组id
     */
    public void setGroupid(Integer groupid) {
        this.groupid = groupid;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", assetid=").append(assetid);
        sb.append(", groupid=").append(groupid);
        sb.append("]");
        return sb.toString();
    }
}